//
//  Water.cpp
//  dentist
//
//  Created by Ethan on 14-2-19.
//
//

#include "Water.h"
#include "HelloWorldScene.h"
#include "BaseBadPoint.h"
#include "Tool.h"

Water::Water(void)
{
    
}

Water::~Water(void)
{
   pTool->autorelease();
}

Water::Water(CCLayer* helloWorld, std::vector<BaseTooth*> pTwTooth){
    pTool = new Tool(pTwTooth);
    pTool->touchEndedX = 203;
    pTool->touchEndedY = 66;
    
    pTool->relativeX = 0;
    pTool->relativeY = 0;
    
    pTool->initWithTexture(CCTextureCache::sharedTextureCache()->addImage("yy_tool_7.png"));
    pTool->setPosition(ccp(705,233));
    pTool->setZOrder(5);
    helloWorld->addChild(pTool);
    pTool->fixKind = BaseBadPoint::NICK;
}


